import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [uni()],
   // 设置scss的api类型为modern-compiler
   css: {
    preprocessorOptions: {
      scss: {
        // 使用更全面的现代API配置
        implementation: 'sass',
        additionalData: '@use "@/styles/variables.scss" as vars;',
        sassOptions: {
          outputStyle: 'expanded'
        }
      }
    }
  },
});
